<?php

class Locations extends Controller 
{
	var $tpl;

	function setVars()
	{
		$this->tpl['head'] = '';
        $this->tpl['sidebar'] = $this->tm->randomBlock();
		$this->tpl['jsOnLoad']  = '';
        //$this->tpl['tpljs'][]  = '';
	}
	
	function __construct()
	{
		parent::Controller();
        $this->load->model('Tamer_Model', 'tm');
		$this->setVars();
		log_message('debug', "Concept: Controler Class Initialized");
	}


	function index()
	{
		$this->tpl['title'] = "PzzAzz Mobile Billboard Advertising Network";
		
		$this->tpl['sidebar'] .= '<fieldset><legend>Definitions</legend>';
		$this->tpl['sidebar'] .= '<ul><li>A Zone consists of a several mile wide area.</li>';
		$this->tpl['sidebar'] .= '<li>A Route is the exact street by street path traveled by the PzzAzz truck from the beginning to the end of a trip.</li></ul></fieldset>';		
		
		
		
		$this->load->view('locations/index', $this->tpl);
	}
	
	function daytona()
	{
		$this->tpl['title'] = "Daytona Beach";
		$this->load->view('locations/daytona', $this->tpl);	
    }

	function orlando()
	{
		$this->tpl['title'] = "Orlando";
		$this->load->view('locations/orlando', $this->tpl);	
    }
}
?>
